fix bug

Andrew Cantino 11 years ago
parent
commit
7d5e10aff4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/agents/post_agent.rb

+ 1 - 1
app/models/agents/post_agent.rb

@@ -47,7 +47,7 @@ module Agents
47 47
     private
48 48
 
49 49
     def post_data(data)
50
-      uri = URI.new(options[:post_url])
50
+      uri = URI options[:post_url]
51 51
       req = Net::HTTP::Post.new(uri.request_uri)
52 52
       req.form_data = data
53 53
       Net::HTTP.start(uri.hostname, uri.port, :use_ssl => uri.scheme == "https") { |http| http.request(req) }